//var userAdd={};
//userAdd.name=$('#area2 .name').html();
//userAdd.address=$('#area2 .address').html();
//userAdd.phone=$('#area2 .phone').html();
//sessionStorage.setItem('userAdd',JSON.stringify(userAdd));
var address1='',address2='',address3='',address4='',add='';
function getAddressDate1(){
	address1=$('#area1 em').html();
	$('.nickname a').html('\''+address1+'\'');
}
function getAddressDate2(){
	address2=$('#area2 em').html();
	$('.nickname a').html('\''+address1+'\' '+'\''+address2+'\'');
}
function getAddressDate3(){
	address3=$('#area3 em').html();
	$('.nickname a').html('\''+address1+'\' '+'\''+address2+'\' '+'\''+address3+'\'');
}
function getAddressDate4(){
	address4=$('#area4 em').html();
	$('.nickname a').html('\''+address1+'\' '+'\''+address2+'\' '+'\''+address3+'\' '+'\''+address4+'\'');
}

$('.btnBox a.mui-btn').on('tap',function(){
	var userAdd={};
	userAdd.name=$('#name').val();
	userAdd.address=$('#nikeName').val();
	userAdd.phone=$('#phone').val();
	sessionStorage.setItem('userAdd',JSON.stringify(userAdd));
	location.href=MPJ.base+"/pages/order/confirm-detail.jsp";
})


$('.checkBox').on('tap',function(){
	if($(this).hasClass('on')){
		$('.checkBox').removeClass('on');
	}else{
		$('.checkBox').addClass('on');
	}
})
